package com.example.dao.impl;

import com.example.dao.BookDao;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

//
//@Repository：@Component衍生注解
//@Repository("bookDao")


@Component("bookDao") //定义bean,bean对象的名称是bookDao
public class BookDaoImpl implements BookDao {
    public void save() {
        System.out.println("book dao save ...");
    }
}
